package replicaset

import (
	"gitee/yinlai/kms-backend/controllers/replicaset"
	"github.com/gin-gonic/gin"
)

// 获取
func get(replicasetGroup *gin.RouterGroup) {
	replicasetGroup.GET("/get", replicaset.Get)
}

// 获取集群列表
func list(replicasetGroup *gin.RouterGroup) {
	replicasetGroup.GET("/list", replicaset.List)
}

func RegisterSubRouter(g *gin.RouterGroup) {
	replicasetGroup := g.Group("/replicaset")
	get(replicasetGroup)
	list(replicasetGroup)
}
